import { defAxios as request } from '@/utils/http'
export function useOnlineApi() {
  return {
    getDebtTZqglPfbzByProId,
    saveDebtReviewScore,
    onlineReviewResult
  }
}
/**
 * 获取项目评审规则列表
 *
 * @param params
 * @returns {*}
 */
function getDebtTZqglPfbzByProId(params) {
  return request({
    url: '/onlineReview/getDebtTZqglPfbzByProId',
    method: 'post',
    data: params
  })
}

/**
 * 保存专家评审结果
 *
 * @param params
 * @returns {*}
 */
function saveDebtReviewScore(params) {
  return request({
    url: '/onlineReview/saveDebtReviewScore',
    method: 'POST',
    data: params
  })
}

/**
 * 生成预览评审报告
 *
 * @param params
 * @returns {*}
 */
function onlineReviewResult(params) {
  return request({
    url: '/onlineReview/viewReviewResult',
    method: 'POST',
    data: params,
    responseType: "blob",
    // headers: {
    //     "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
    // }
  })
}
